package com.tbit.uqbike.client.service.impl;

import com.tbit.uqbike.client.dao.core.WeixinDepositLogDao;
import com.tbit.uqbike.client.pojo.WeixinDepositLog;
import com.tbit.uqbike.client.service.WeixinDepositLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("weixinDepositLogService")
public class WeixinDepositLogServiceImpl implements WeixinDepositLogService {
    @Autowired
    private WeixinDepositLogDao weixinDepositLogDao;

    @Override
    public List<WeixinDepositLog> getNotReturn(Integer userId) {
        return weixinDepositLogDao.getNotReturn(userId);
    }

    @Override
    public void insert(WeixinDepositLog weixinDepositLog) {
        weixinDepositLogDao.insert(weixinDepositLog);
    }

    @Override
    public void updateReturn(WeixinDepositLog weixinDepositLog) {
        weixinDepositLogDao.updateReturn(weixinDepositLog);
    }

    @Override
    public void updateTransNo(String orderNo, String transNo) {
        weixinDepositLogDao.updateTransNo(orderNo, transNo);
    }

    @Override
    public WeixinDepositLog getByOrderNo(String orderNo) {
        return weixinDepositLogDao.getByOrderNo(orderNo);
    }

    @Override
    public void update(WeixinDepositLog weixinDepositLog) {
        weixinDepositLogDao.update(weixinDepositLog);
    }


}  